<?php
include './conn.php';

$result = $conn->query("select * from taobaogoods");

  $arr = [];
  for($i=0;$i<$result->num_rows;$i++){
    $arr[$i] = $result->fetch_assoc();
  }

  echo json_encode($arr);


 // http://localhost/www.gome.com.cn/interface/cartlist.php

?>

